class Page(object):
    def __init__(self):
        self.request = None
        self.download_result = {}
        self.page_processor_result = {}
        self.child_pages = []

    def add_child_page(self, page):
        self.child_pages.append(page)

    def get_child_pages(self):
        return self.child_pages

    def set_request(self, request):
        self.request = request

    def set_download_result(self, download_result):
        self.download_result = download_result

    def set_page_processor_result(self, page_processor_result):
        self.page_processor_result = page_processor_result

    def get_request(self):
        return self.request

    def get_download_result(self):
        return self.download_result

    def get_page_processor_result(self):
        return self.page_processor_result

    def __str__(self):
        return\
            'page: \n' + str(self.request)\
            + '\n' + 'child_pages: '\
            + str([str(i) for i in self.child_pages])